package CanaCuApa;

import java.util.ArrayList;
import templates.State;

public class StareCanaCuApa {
	
	protected int capacitate1;
	protected int capacitate2;
	
//	public StareCanaCuApa(int capacitate1, int capacitate2) {
	//	this.capacitate1 = 0;
		//this.capacitate2 = 0;
	//}

	public StareCanaCuApa(int c1, int c2) {
		capacitate1 = c1;
		capacitate2 = c2;
	}



	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + capacitate1;
		result = prime * result + capacitate2;
		return result;
	}



	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		StareCanaCuApa other = (StareCanaCuApa) obj;
		if (capacitate1 != other.capacitate1)
			return false;
		if (capacitate2 != other.capacitate2)
			return false;
		return true;
	}



	public String toString() {
		return "StareCanaCuApa [capacitate1=" + capacitate1 + ", capacitate2="
				+ capacitate2 + "]";
	}
	
	public static ArrayList<State<StareCanaCuApa>>finalStare(){
		return null;	
	}
	
	public static ArrayList<State<StareCanaCuApa>> finalStates(){
		ArrayList<State<StareCanaCuApa>> fStates=new ArrayList<State<StareCanaCuApa>>() ;
		fStates.add(new State<StareCanaCuApa>(new StareCanaCuApa(0,2),null));
		fStates.add(newState<StareCanaCuApa>(new StareCanaCuApa(1,2),null));
		fStates.add(new State<StareCanaCuApa>(new StareCanaCuApa(2,2),null));
		fStates.add(new State<StareCanaCuApa>(new StareCanaCuApa(3,2),null));
		retun fStare;
		}
}
